package com.zy.design.dd.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author zhaoyi
 * @date 2021/3/19 13:14
 * 统计的数据
 */
@Data
@NoArgsConstructor
public class CountData {

    //司机id
    private String driverId;

    //开始时间戳 毫秒值
    private Long startTime;
    private Long endTime;

    //出车时长-- 毫秒值
    private Long continuedTime;

    //空驶时长-- 毫秒值
    private Long emptyTime;

    //服务时长
    private Long serverTime;

    //接客时长
    private Long meetTime;

    //等待时长
    private Long waitingTime;

    //...... 其余好多省略了



    public CountData(DataLine dataLine) {
        this.driverId = dataLine.getDriverId();
        this.startTime = dataLine.getStartTime();
        this.endTime = dataLine.getEndTime();
        this.continuedTime = dataLine.getEndTime() - dataLine.getStartTime();
    }
}
